package com.mingqi.enetconnected.launch;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.mingqi.enetconnected.R;
import com.mingqi.enetconnected.base.BaseActivity;
import com.mingqi.enetconnected.launch.util.VerifyCountDownUtils;
import com.mingqi.enetconnected.util.resource.ResourceUtils;

import butterknife.BindView;

public class ForgetPasswordActivity extends BaseActivity {


    @BindView(R.id.et_company_name)
    EditText mEtCompanyName;
    @BindView(R.id.et_employee_name)
    EditText mEtEmployeeName;
    @BindView(R.id.et_employee_account)
    EditText mEtEmployeeAccount;
    @BindView(R.id.et_phone)
    EditText mEtPhone;
    @BindView(R.id.tv_obtain_verify)
    TextView mTvObtainVerify;
    @BindView(R.id.et_verify)
    EditText mEtVerify;
    @BindView(R.id.btn_next_step)
    Button mBtnNextStep;
    private VerifyCountDownUtils mVerifyCountDownUtils;

    @Override
    protected int getLayoutID() {
        return R.layout.activity_forget_password;
    }

    @Override
    protected void initView() {

        setTitleName(ResourceUtils.getString(R.string.forget_password));
        mVerifyCountDownUtils = new VerifyCountDownUtils(mTvObtainVerify, 60 * 1000, 1000);

    }

    @Override
    protected void initClick() {

        mTvObtainVerify.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                mVerifyCountDownUtils.start();
            }
        });

        mBtnNextStep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startActivity(new Intent(mContext,ForgetPasswordNextActivity.class));
            }
        });
    }
}
